
import 'package:dio/dio.dart';

import 'package:high_help_apps/common/entities/file/commodity_file_upload_result_entity.dart';
import 'package:high_help_apps/common/utils/http.dart';

/// FileName: file
/// Author: admin
/// Date: 2021-09-04 11:35
/// Description:

class FileAPI {

  /// 发送
  static Future sendCommodity(
      FormData data
      ) async {
    var response = await HttpUtil().post(
      '/file/commodity',
      data: data
    );
    print(response);
    return CommodityFileUploadResultEntity().fromJson(response);
  }

}


